{include file="header.tpl" title=$title nav_title="查看作品"}
<div id="container">
		<div class="page_block">
			<div class="page_block_title">
				<h2>{$work.work_name}<a href="?Works-showWorkSet&set_id={$work.works_set_id}&uid={$work.author_id}">返回作品集</a></h2>
			</div>
			<div class="page_block_body">
				<div class="inner_box">
					<img src="{$work.work_image_url}" />
				</div>
				<div class="clear"></div>
			</div>
			<div class="page_block_body">
				<div class="inner_text">
					{$work.work_description}
				</div>
			</div>
			<div class="page_block_body">
				<form action="?WorksComment-doAddWC" method="post">
					<input type="hidden" name="wc_work_id" value="{$smarty.get.wid}" />
					<input type="hidden" name="wc_author_id" value="{$smarty.session.uid}" />
					<table class="info_tab">
					<tr>
						<td><textarea name="wc_text"></textarea></td>
					</tr>
					<tr>
						<td><input type="submit" class="button" value="发表评论" /></td>
					</tr>
					</table>
				</form>
			</div>
			{section name=item loop=$comments}
			<div class="page_block_body">
				<div class="inner_text">{$comments[item].wc_text}</div>
			</div>
			{sectionelse}
			<div class="page_block_body">
				<div class="inner_text">还没有人对本作品发表评论。</div>
			</div>
			{/section}
		</div>
</div>
{include file="footer.tpl"}
